function collapsecat(id)
{
	if($('#f-' + id).css('display') == 'none')
	{
		$('#c-' + id).attr('src', '<?=$vars->style_media;?>arrow_up.png');
	}
	else
	{
		$('#c-' + id).attr('src', '<?=$vars->style_media;?>arrow_down.png');
	}
	$('#f-' + id).slideToggle('normal');
}
function expand()
{
	$('.maintitle-controls img').attr('src', '<?=$vars->style_media;?>arrow_up.png');
	$('.forum-table').slideDown('normal');
}
function collapse()
{
	$('.maintitle-controls img').attr('src', '<?=$vars->style_media;?>arrow_down.png');
	$('.forum-table').slideUp('normal');
}
function togglemenu(id)
{
	/*if($(id).css('display') == 'none')
	{
		$(id).attr('src', 'images/arrow_up.png');
	}
	else
	{
		$('#c-' + id).attr('src', 'images/arrow_down.png');
	}*/
	$('#' + id).toggle('slow');
}